import React, { Component } from 'react';
import { globalContext } from './globalData/js/globalData'
const { Consumer } = globalContext
class StrideChild11 extends Component {
    state = {  } 
    render() { 
        return (<>
            {/* 孙子组件也需要读取-父父组件的role数据 */}
            <div style={{textIndent:'20px'}}>这是Child1的子组件，孙子组件
            <Consumer>
                {
                    value=>(<div>{value.role}</div>)
                }
            </Consumer>
            </div>
        </>);
    }
}
 
export default StrideChild11;